package kr.hkit.javaproject.chapter00;

import java.util.Scanner;

public class LoopC {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int sum = 0;
		int n;
		
		do {
			System.out.print("정수를 입력하시오. ");
			n = scan.nextInt();
			sum = sum + n;
		} while (n > 0);
		System.out.println("입력한 정수의 합은 " + sum);
	}
}


